package com.hfh.main.course.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 项目表 列表
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("col_course_list")
@Schema(name = "CourseListEntity", description = "$!{table.comment}")
public class CourseListEntity extends Model<CourseListEntity> {

    @Schema(description = "主键")
    @TableId(value = "list_id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "年度")
    @TableField("year")
    private Integer year;

    @Schema(description = "项目编号")
    @TableField(value = "list_no")
    private String no;

    @Schema(description = "名称")
    @TableField("list_name")
    private String name;

    @Schema(description = "排序")
    @TableField("list_sort")
    private String sort;

    @Schema(description = "组长")
    @TableField("list_leader")
    private String leader;

    @Schema(description = "学号")
    @TableField("user_acc")
    private String acc;

    @Schema(description = "类型")
    @TableField("list_type")
    private Integer type;

    @Schema(description = "专业")
    @TableField("list_profess")
    private Integer profess;

    @Schema(description = "可被选择的次数")
    @TableField("list_count")
    private Integer listCount;

    @Schema(description = "指导教师")
    @TableField("teacher_id")
    private String teacherId;

    @Schema(description = "指导教师name")
    @TableField("teacher_name")
    private String teacherName;


    @Schema(description = "创建者")
    @TableField("create_by")
    private String createBy;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @Schema(description = "更新者")
    @TableField("update_by")
    private String updateBy;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    @TableField("update_time")
    private Date updateTime;

    @Schema(description = "伪删除")
    @TableField("undock")
    private Integer undock;

    @Schema(description = "状态")
    @TableField("state")
    private Integer state;

    @Schema(description = "项目简介")
    @TableField("pro_description")
    private String proDescription;

    @Schema(description = "项目要求")
    @TableField("pro_requirement")
    private String proRequirement;


    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "项目启动日期")
    @TableField("start_date")
    private Date startDate;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
